﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListOutStorageDetail.aspx.cs" Inherits="lcs.Web.Outstorage.ListOutStorageDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
     <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/JsTools.js" type="text/javascript"></script>
    <link href="/style.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
        td { font-size: 9pt}
        a { color:Blue; text-decoration: none}
        body{ font-size:9pt;}
     </style>

     <script type="text/javascript">

         function OpenPop(val, w, h) {
             if (true == window.showModalDialog(val, window.self, "dialogwidth=" + w + ";dialogheight=" + h + ";" + " resizable:yes;")) {
                 __doPostBack('btn_reload', 'btn_reload_Click');
             }

         }

         function OpenPopWin(val, w, h) {
             //window.showModalDialog(val,window.self,"dialogwidth="+w+";dialogheight="+h+";")

             window.open(val, 'newwindow', "height=" + h + ",width=" + w + ",toolbar=yes,scrollbars=yes");
         }
       
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <div style=" text-align:left; margin-bottom:10px; margin-top:10px;">
        <b>出库项目物料清单
    </b>
    </div>
     <div style=" margin-top:10px; margin-bottom:10px">
        出库清单号：<asp:TextBox 
             ID="txt_batchID" runat="server" Width="237px"></asp:TextBox>
     &nbsp;到货地点：<asp:TextBox 
             ID="txt_add" runat="server" Width="138px"></asp:TextBox>
         物料：<asp:TextBox 
             ID="txt_material" runat="server" Width="138px"></asp:TextBox>
     &nbsp;<asp:Button ID="btn_sel" runat="server" onclick="btn_sel_Click" 
             Text="查询(可模糊查询)" />
     &nbsp;</div>
    <div style=" text-align:center">
        <asp:GridView ID="GridView1" runat="server" Width="100%" 
            AutoGenerateColumns="False" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            onrowcommand="GridView1_RowCommand" 
            onrowdatabound="GridView1_RowDataBound" AllowPaging="True" PageSize="20">
            <Columns>
                <asp:TemplateField HeaderText="出库状态">
                    <ItemTemplate>
                        <asp:Label ID="lbl_status" runat="server"></asp:Label>
                        <asp:Label ID="lbl_out_storageList_id" runat="server" 
                            Text='<%# Bind("out_storageList_id") %>' Visible="False"></asp:Label>
                        <br />
                        <asp:Label ID="lbl_material_id" runat="server" 
                            Text='<%# Bind("material_id") %>' Visible="False"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="选择" Visible="False">
                <HeaderTemplate>
                          <input id="cbo_checkAll" type="checkbox" onclick="checkall(this)" />全选
                   </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="cbo_check" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbn_outStorage" runat="server" 
                            CommandArgument='<%# Bind("out_storageList_id") %>' 
                            CommandName="lbn_outStorage">出库</asp:LinkButton>
                        &nbsp;<asp:LinkButton ID="lbn_outStoragefm" runat="server" CommandArgument='<%# Bind("out_storageList_id") %>' CommandName="lbn_outStoragefm">出库分码</asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbn_print" runat="server" 
                            CommandArgument='<%# Bind("out_storagelist_batchid") %>' 
                            CommandName="lbn_print">打印出库单</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="项目名称" DataField="projectname" />
                <asp:BoundField HeaderText="物料描述" DataField="material" />
                <asp:TemplateField HeaderText="预出库数量">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" 
                            Text='<%# Bind("out_storage_count") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbl_out_storage_count" runat="server" 
                            Text='<%# Bind("out_storage_count") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="数量单位" DataField="unit" />
                <asp:BoundField DataField="out_storage_Estimate" HeaderText="预出库时间" />
                <asp:BoundField DataField="user_name" HeaderText="提交人" />
                <asp:BoundField DataField="check_user_name" HeaderText="审核人" Visible="False" />
                <asp:BoundField DataField="receive_address" HeaderText="到货地点" />
                <asp:BoundField DataField="receive_userName" HeaderText="接收人" />
                <asp:BoundField DataField="receive_userPhone" HeaderText="接收人电话" />
                <asp:BoundField DataField="out_storagelist_batchid" HeaderText="出库清单号" />
            </Columns>
            <PagerStyle CssClass="mypager" />
        </asp:GridView>
    </div>
    <div style=" text-align:left; margin-bottom:10px; margin-top:10px">
        <asp:Button ID="btn_reload" runat="server" 
            onclick="btn_reload_Click" Text="刷新状态" />&nbsp;&nbsp;&nbsp; 
         </div>
     <div style=" text-align:center; margin-bottom:10px; margin-top:10px">
         请选择出库清单号：<asp:DropDownList ID="ddl_batchid" 
             runat="server">
         </asp:DropDownList>
         <asp:Button ID="btn_printByPer" runat="server" Text="打印出库单" 
             onclick="btn_printByPer_Click" />
    </div>
     <div style=" text-align:center; margin-bottom:10px; margin-top:10px">
    </div>
    
    </div>
    </form>
</body>
</html>